package com.gs.netty.core.annotation;


import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
/**
 * 拦截器注解
 */
public @interface Interceptor {

    /**
     * 拦截指令集合
     * @return
     */
    String[] includes();

    /**
     * 排除哪些指令
     * @return
     */
    String[] excludes() default {};

    /**
     * 排序字段，值越小越靠前
     * @return
     */
    int order() default Integer.MAX_VALUE;
}
